package cn.com.assistant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

/**
 * @author 小风风
 */
@Data
@TableName("data")//@TableName中的值对应着表名
@ApiModel(description = "实体数据表")
public class DataEntity {

    @TableId(value = "id",type = IdType.INPUT)
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "故障名")
    private String faultName;

    @ApiModelProperty(value = "故障表现")
    private String question;

    @ApiModelProperty(value = "故障类型")
    private String type;

    @ApiModelProperty(value = "解决措施")
    private String solutions;

    @ApiModelProperty(value = "关联id")
    private String principalId;

    @ApiModelProperty(value = "关联实体")
    private String principalProperty;

    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    @ApiModelProperty(value = "创建时间")
    private Date createdDate;

    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    @ApiModelProperty(value = "更新时间")
    private Date updatedDate;
}
